package sk.vrto.web.events;

import sk.vrto.domain.Contact;
import sk.vrto.domain.Email;

/**
 * Events used for Forwarding email and Replying to email.
 */
public class UiEmailEvent {

    public static class FwReAddWindowEvent {
        public static enum FwRe {
            FORWARD, REPLY
        }
        private final Email email;
        private final FwRe fwOrRe;

        public FwReAddWindowEvent(Email email, FwRe fwOrRe) {
            this.email = email;
            this.fwOrRe = fwOrRe;
        }

        public Email getEmail() {
            return email;
        }

        public FwRe getFwOrRe() {
            return fwOrRe;
        }
    }

    public static class FwEvent {
        private final Email email;

        public FwEvent(Email email) {
            this.email = email;
        }

        public Email getEmail() {
            return email;
        }
    }

    public static class ReEvent {
        private final Email email;

        public ReEvent(Email email) {
            this.email = email;
        }

        public Email getEmail() {
            return email;
        }
    }

    public static class OpenWindowEvent {
        private Contact contact;

        public OpenWindowEvent() {
        }

        public OpenWindowEvent(Contact contact) {
            this.contact = contact;
        }

        public Contact getContact() {
            return contact;
        }
    }

}
